const { defineConfig } = require("@vue/cli-service");

const path = require("path");
module.exports = defineConfig({
  configureWebpack: {
    resolve: {
      alias: {
        "@": path.join(__dirname, "src"),
        style: path.join(__dirname, "src/styles"),
      },
    },
  },
  devServer: {
    port: 8081,
    proxy: {
      "/api": {
        target: "http://localhost:8081",
        changeOrigin: true,
        pathRewrite: {
          "^/api": "/mock",
        },
      },
    },
  },
  transpileDependencies: true,
  lintOnSave: false,
});
